﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace Lilium.T4.Hosting
{
    internal static class NativeMethods
    {
        // Fields
        public const int E_INSUFFICIENT_BUFFER = -2147024774;
        public const uint VSITEMID_ROOT = 0xfffffffe;

        // Methods
        [DllImport("fusion.dll", CharSet = CharSet.Auto)]
        internal static extern int CreateAssemblyCache(out IAssemblyCache ppAsmCache, uint dwReserved);
        public static bool Failed(int hr)
        {
            return (hr < 0);
        }
    }
}